package com.heima.model.common.dtos;

import lombok.Data;

import java.io.Serializable;

@Data

public class PageResponseResult extends ResponseResult implements Serializable {
    private Long currentPage;
    private Long size;
    private Long total;


    public PageResponseResult(Long currentPage, Long size, Long total) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }

    public PageResponseResult(Integer code, Object data, Long currentPage, Long size, Long total) {
        super(code, data);
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }

    public PageResponseResult(Integer code, String msg, Object data, Long currentPage, Long size, Long total) {
        super(code, msg, data);
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }

    public PageResponseResult(Integer code, String msg, Long currentPage, Long size, Long total) {
        super(code, msg);
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }

    public Long getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Long currentPage) {
        this.currentPage = currentPage;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
